package com.hdoit.apollo.web.stock.modelconfig;
import com.hdoit.apollo.web.shop.providers.StaffProvider;
import com.hdoit.apollo.web.stock.providers.InventoryStateProvider;
import com.hdoit.apollo.web.stock.providers.InventoryTypeProvider;
import com.tennetcn.web.component.attribute.DisplayNameAttribute;
import com.tennetcn.web.component.attribute.DropDownListAttribute;
import com.tennetcn.web.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年05月30日 09:47:40
 * @comment
 */
public class InventorySearchConfig extends ModelMetadataAttributeConfiguration{
    public InventorySearchConfig(){
        this.setProperty("inventoryState")
            .hasAttribute(new DisplayNameAttribute("盘点状态"))
            .hasAttribute(new DropDownListAttribute(new InventoryStateProvider()));
        
        this.setProperty("inventoryType")
        	.hasAttribute(new DisplayNameAttribute("盘点类型"))
        	.hasAttribute(new DropDownListAttribute(new InventoryTypeProvider()));

        this.setProperty("inventoryNo")
            .hasAttribute(new DisplayNameAttribute("盘点单号"));

        this.setProperty("createUserId")
	        .hasAttribute(new DisplayNameAttribute("开单人"))
	    	.hasAttribute(new DropDownListAttribute(new StaffProvider()));
    
	    this.setProperty("startDate")
	    	.hasAttribute(new DisplayNameAttribute("开始时间"));
	
	    this.setProperty("endDate")
	        .hasAttribute(new DisplayNameAttribute("至"));
    }
}
